/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.apache.bid.client  
 */
package com.apache.bid.client;

import java.util.Map;

import com.apache.api.vo.ResultEntity;
import com.apache.bid.common.BidCommonUtil;
import com.apache.rpc.client.RpcProtoclClient;
import com.apache.uct.common.ToolsUtil;

/**
 * description:  
 * @author Hou Dayu 创建时间：2016-4-18  
 * 
 */
public class WbdBaojiaServerCoreClient {
	public final String BaoJiaServerName = "wbdService";
	private static WbdBaojiaServerCoreClient instance;

	public static WbdBaojiaServerCoreClient getInstance() {
		if (instance == null) {
			instance = new WbdBaojiaServerCoreClient();
		}
		return instance;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object findSessions(Map params) {
		params.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "sessionList", params,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectSessioinSingle(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "pubEntity", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectBidPubSingle(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "sessionEntity", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectItemHistoryList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "itemHistoryList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectItemList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "itemList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectApplyHistory(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "applyHistoryEntity", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectApplyHistorys(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "applyHistoryList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectApplys(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "applyList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectApply(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "applyEntity", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectItemGroup(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "itemGroup", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectBaojiaList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "baojiaList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectJingjiaList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "jingjiaList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectItemVipList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "itemVipList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectBaoServerList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "bidServerList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectVarietyList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "bidVarietyList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectMaxContentList(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "contentList", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectMaxContent(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "contentEntity", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectItemInfo(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "itemEntity", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectItemHistoryInfo(Map map) {
		map.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "itemHistoryEntity", map,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public Object selectItemIds(Map params) {
		params.put("sysPass", ToolsUtil.getInstance().getValueByKey("push_to_dwusoft_pass"));
		ResultEntity entity = RpcProtoclClient.getInstance().doService("wbdService", "itemIdList", params,
				BidCommonUtil.getInstance().getInterfaceRegister());
		if (("true".equals(entity.getResult())) && (entity.getEntity() != null)) {
			return entity.getEntity();
		}
		return null;
	}
}
